package com.kelan.android.app.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.kelan.android.app.entity.AreEntity;

@RestController
public class AreController {

	
	@RequestMapping("getjson")
	public List<AreEntity> getAreaList(){
		List<AreEntity> list = new ArrayList<>();
		AreEntity areEntity = new AreEntity();
		areEntity.setAreCode("460000");
		areEntity.setAreName("海南省");
		list.add(areEntity);
		AreEntity areEntity1 = new AreEntity();
		areEntity1.setAreCode("460100");
		areEntity1.setAreName("海口市");
		list.add(areEntity1);
		AreEntity areEntity2 = new AreEntity();
		areEntity2.setAreCode("460105");
		areEntity2.setAreName("秀英区");
		list.add(areEntity2);
		AreEntity areEntity3 = new AreEntity();
		areEntity3.setAreCode("460106");
		areEntity3.setAreName("龙华区");
		list.add(areEntity3);
		AreEntity areEntity4 = new AreEntity();
		areEntity4.setAreCode("460107");
		areEntity4.setAreName("琼山区");
		list.add(areEntity4);
		AreEntity areEntity5 = new AreEntity();
		areEntity5.setAreCode("460108");
		areEntity5.setAreName("美兰区");
		list.add(areEntity5);
		AreEntity areEntity6 = new AreEntity();
		areEntity6.setAreCode("460200");
		areEntity6.setAreName("三亚市");
		list.add(areEntity6);
		AreEntity areEntity7 = new AreEntity();
		areEntity7.setAreCode("460400");
		areEntity7.setAreName("儋州市");
		list.add(areEntity7);
		AreEntity areEntity8 = new AreEntity();
		areEntity8.setAreCode("469001");
		areEntity8.setAreName("五指山市");
		list.add(areEntity8);
		AreEntity areEntity9 = new AreEntity();
		areEntity9.setAreCode("469002");
		areEntity9.setAreName("琼海市");
		list.add(areEntity9);
		AreEntity areEntity10 = new AreEntity();
		areEntity10.setAreCode("469005");
		areEntity10.setAreName("文昌市");
		list.add(areEntity10);
		AreEntity areEntity11 = new AreEntity();
		areEntity11.setAreCode("469006");
		areEntity11.setAreName("万宁市");
		list.add(areEntity11);
		AreEntity areEntity12 = new AreEntity();
		areEntity12.setAreCode("469007");
		areEntity12.setAreName("东方市");
		list.add(areEntity12);
		AreEntity areEntity13 = new AreEntity();
		areEntity13.setAreCode("469021");
		areEntity13.setAreName("定安县");
		list.add(areEntity13);
		AreEntity areEntity14 = new AreEntity();
		areEntity14.setAreCode("469022");
		areEntity14.setAreName("屯昌县");
		list.add(areEntity14);
		AreEntity areEntity15 = new AreEntity();
		areEntity15.setAreCode("469023");
		areEntity15.setAreName("澄迈县");
		list.add(areEntity15);
		AreEntity areEntity16 = new AreEntity();
		areEntity16.setAreCode("469024");
		areEntity16.setAreName("临高县");
		list.add(areEntity16);
		AreEntity areEntity17 = new AreEntity();
		areEntity17.setAreCode("469025");
		areEntity17.setAreName("白沙县");
		list.add(areEntity17);
		AreEntity areEntity18 = new AreEntity();
		areEntity18.setAreCode("469026");
		areEntity18.setAreName("昌江县");
		list.add(areEntity18);
		AreEntity areEntity19 = new AreEntity();
		areEntity19.setAreCode("469027");
		areEntity19.setAreName("乐东县");
		list.add(areEntity19);
		AreEntity areEntity20 = new AreEntity();
		areEntity20.setAreCode("469028");
		areEntity20.setAreName("陵水县");
		list.add(areEntity20);
		AreEntity areEntity21 = new AreEntity();
		areEntity21.setAreCode("469029");
		areEntity21.setAreName("保亭县");
		list.add(areEntity21);
		AreEntity areEntity22 = new AreEntity();
		areEntity22.setAreCode("469030");
		areEntity22.setAreName("琼中县");
		list.add(areEntity22);
		return list;
	}
}
